//
//  UserModel.h
//  template
//
//  Created by SoXun on 2018/8/11.
//  Copyright © 2018年 soxun. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface UserModel : NSObject<NSCoding>
//typeId: 0 游客 1 普通员工 2企业用户 3商家 4 门卫 5 物业
typedef enum{
    UserTourist = 0,// 游客
    UserStaff,// 员工
    UserCompany,// 企业
    UserShop,// 商家
    UserDoorkeeper,// 门卫
    UserTenement,// 物业
}UserType;
/**
 
 {
 username = 用户5341;
 birthday = <null>;
 authState = <null>;
 status = 0;
 tel = 18911955341;
 isVip = 0;
 registryDate = 2018-12-25 11:33:19;
 sex = <null>;
 headImg = <null>;
 earnPrice = <null>;
 city = <null>;
 clockNum = <null>;
 token = 17@18911955341@1547111309613;
 lastLoginDate = 2019-01-10 17:08:29;
 isSignProcotol = 1;
 recommendCode = 00000000021;
 age = <null>;
 password = a8d670e1e0ec1f75d5004cacd0aa2b74;
 integralNum = <null>;
 userId = 17;
 */

@property (nonatomic,copy)NSString * isVisitor;
@property (nonatomic,copy)NSString * username;
@property (nonatomic,copy)NSString * birthday;
@property (nonatomic,copy)NSString * authState;
@property (nonatomic,copy)NSString * status;
@property (nonatomic,copy)NSString * tel;
@property (nonatomic,copy)NSString * isVip;
@property (nonatomic,copy)NSString * userid;
@property (nonatomic,copy)NSString * registryDate;
@property (nonatomic,copy)NSString * sex;
@property (nonatomic,copy)NSString * headImg;
@property (nonatomic,copy)NSString * earnPrice;
@property (nonatomic,copy)NSString * city;
@property (nonatomic,copy)NSString * typeId;
@property (nonatomic,copy)NSString * typeId2;
@property (nonatomic,copy)NSString * clockNum;
@property (nonatomic,copy)NSString * token;
@property (nonatomic,copy)NSString * lastLoginDate;
@property (nonatomic,copy)NSString * isSignProcotol;
@property (nonatomic,copy)NSString * recommendCode;
@property (nonatomic,copy)NSString * age;
@property (nonatomic,copy)NSString * password;
@property (nonatomic,copy)NSString * integralNum;
@property (nonatomic,copy)NSString * userId;
- (NSDictionary *)propertiesDictionary;
+ (UserModel *)getUserModel;
+ (void)SaveUserModel:(UserModel *)model;
+ (void)clearUserInfo;
@property (nonatomic,assign) UserType userType;
@end
